package com.origin.ebuy.bargd.service.order;

import java.sql.SQLException;

import com.alibaba.fastjson.JSONArray;

public interface IOrderService {
	
	public long insertOrder(String gdId,String price,
			String uid,String gdNumber,String sf,String city,String address)throws SQLException;
	
	/**
	 * 查询所有的订单
	 * @return
	 * @throws SQLException
	 */
	public JSONArray queryAllOrders()throws SQLException;
	
	/**
	 * 更新订单的状态
	 * @param id
	 * @param state
	 * @return
	 * @throws SQLException
	 */
	public int updateOrderState(String id,String state)throws SQLException;
	
}
